package common

type SPReturn struct {
	Flag   int
	EngMsg string
	ChnMsg string
}

type RecCount struct {
	Number int
}

type RecDataStr struct {
	Data string
}

type User struct {
	Username string
	Realname string
	Password string
	Photo    string
	Expired  int32
	Language string
	ROper    []map[string]string
	RQuery   []map[string]string
	RWono    []map[string]string
	RSets    []map[string]string
	RUser    []map[string]string
	Conn     string
	Prod     string
	DBName   string
}

type Employee struct {
	Index      int
	Id         string
	Name       string
	Department string
	Expire     string
}

type EmployeeRights struct {
	Index  int
	Id     string
	Name   string
	Rights string
}

type Computer struct {
	Station string
	Line    string
}

type WorkOrder struct {
	Wono   string
	Wotype string
	Item   string
	Desc   string
	Qty    int
}

type WorkInfo struct {
	Index       int
	Wono        string
	Item        string
	Version     string
	Qty         int
	Route       string
	Released    string
	ReleasedQty int
	Closed      string
	Locked      string
}

type Failure struct {
	Code string
	Desc string
}

type PartName struct {
	Index int
	Name  string
	Desc  string
}

type PartDetail struct {
	Index  int
	Name   string
	Barcod string
	Leng   string
}

type SsnFailure struct {
	Serial   string
	Failcode string
	Faildesc string
	Failloca string
}

type RightsInfo struct {
	RightsId  int
	RightsUrl string
}

type ItemDesc struct {
	Item string
	Desc string
}

type RouteName struct {
	Name string
}

type RouteIndex struct {
	Index int
	Name  string
}

type RouteInfo struct {
	Index   int
	Prev    string
	Curr    string
	Next    string
	Cycle   string
	Repair  string
	Bypass  string
	Testing string
}

type WorkOrderNo struct {
	Wono string
}

type ProdType struct {
	Typeeng string
	Typechn string
	Barcode string
}

type Factory struct {
	Code string
}

type ItemDefine struct {
	Index   int
	Item    string
	Desc    string
	Band    string
	Limit   string
	Route   string
	PrdType string
	PrdCode string
	FacCode string
	PackQty string
	Locked  string
}

type PassivePim struct {
	PrdType  string
	Band     string
	Limit    string
	Htmlfile string
}

type Station struct {
	Name string
	Desc string
}

type LineName struct {
	Name string
}

type LineInfo struct {
	Name   string
	Desc   string
	Locked string
}

type FailureInfo struct {
	Index    int
	Failcode string
	Faildesc string
	Descchn  string
	Failtype string
}

type PartInfo struct {
	Index   int
	Item    string
	Station string
	Name    string
	Barcode string
	Leng    string
	Qty     int
}

type SsnMain struct {
	Serial string
	Wono   string
	Item   string
	Curr   string
	Boxid  string
	CustID string
	Oldssn string
	LinkNo string
}

type SsnStation struct {
	Serial   string
	Index    int
	Curr     string
	Line     string
	Result   string
	Operator string
	Date     string
}

type SsnParts struct {
	Serial   string
	PartName string
	PartId   string
	Qty      int
}

type SsnFailInfo struct {
	Serial       string
	Station      string
	Failcode     string
	Faildesc     string
	RepairType   string
	RepairAction string
	RepairDesc   string
}

type SsnTestMain struct {
	Serial     string
	Station    string
	Result     string
	MachineId  string
	FixtureId  string
	TextTime   string
	EscapeTime string
	Version    string
	Operater   string
}

type SsnTestDetail struct {
	Index      string
	Serial     string
	Station    string
	TestName   string
	TestType   string
	TestData   string
	TestUnit   string
	LowerLimit string
	UpperLimit string
	Result     string
	Operator   string
	Date       string
}

type BoxMain struct {
	Boxid      string
	BaseQty    int
	PackedQty  int
	Closed     string
	Deliveryed string
	Pono       string
}

type BoxInfo struct {
	Index  int
	Boxid  string
	Serial string
	Date   string
}

type WoRange struct {
	RangeFrom string
	RangeTo   string
}

type WoPost struct {
	Serial  string
	Station string
	Result  string
}

type TestUnit struct {
	Station string
	Result  string
	Count   int
}

type WoMain struct {
	Wono    string
	Wotype  string
	Version string
	Item    string
	Desc    string
	Qty     int
	Route   string
	Remark  string
}

type WoDetail struct {
	Index    int
	Serial   string
	Curr     string
	Result   string
	Failcode string
}

type WoTotals struct {
	Index    string
	Serial   string
	Curr     string
	Result   string
	Failcode string
	Date     string
}

type PoInfo struct {
	Index    string
	PoId     string
	ProdId   string
	Operater string
	Date     string
}

type DailyQuery struct {
	Station   string
	Result    string
	Hourrange string
	Count     int
}

type WoFailInfo struct {
	Index    int
	Wono     string
	Serial   string
	Station  string
	Result   string
	Failcode string
	Faildesc string
	Date     string
}

type QueryDetail struct {
	Index  int
	Wono   string
	Item   string
	Desc   string
	Serial string
	Curr   string
	Result string
	Date   string
}

type WipQuery struct {
	Name    string
	Station string
	Count   int
}

type WipDetail struct {
	Index    int
	Wono     string
	Item     string
	Serial   string
	Station  string
	Result   string
	Failcode string
}

type RprByDate struct {
	Item       string
	Desc       string
	Leng       int
	Data       map[interface{}][]interface{}
	SubPyPass  int
	SubPyFail  int
	SubPy      string
	SubFpyPass int
	SubFpyFail int
	SubFpy     string
}

type DateQueryPyCount struct {
	Item   string
	Desc   string
	Curr   string
	Result string
	Count  int
}

type DateQueryFpyCount struct {
	Item   string
	Curr   string
	Result string
	Count  int
}

type OperCount struct {
	Station string
	Count   int
}

type OperDetail struct {
	Index  int
	Wono   string
	Serial string
	Curr   string
	Result string
	Date   string
	Oper   string
}

type DailyDetails struct {
	Hours     string
	ValPass   int
	ValFail   int
	PassYield string
}

type DailyResult struct {
	Station   string
	Item      string
	BeginDate string
	EndDate   string
	Details   [25]*DailyDetails
}

type AntennaTest struct {
	Serial    string
	Index     string
	TestName  string
	Frequency string
	Ports     string
	Speci     string
	TestData  string
	Result    string
	Date      string
	Operator  string
}

type WoPassed struct {
	Index  int
	Item   string
	Desc   string
	Serial string
	Curr   string
	Result string
	Oper   string
	Date   string
}

type AntennaDataPrint struct {
	Serial   string
	Date     string
	Result   string
	ElecB    bool
	PhaseB   bool
	Item     string
	Version  string
	Operator string
	Model    string
}

type AntennaRprSet struct {
	Parameter     string
	Specification string
}

type PrintSqlAndFile struct {
	SqlText  string
	Htmlfile string
}

type PassiveFrequency struct {
	Item          string
	Parameter     string
	TestName      string
	Frequency     string
	Ports         string
	Specification string
}

type PassiveTestData struct {
	PassiveFrequency
	Data   string
	Result string
}

type GpsFrequency struct {
	Item          string
	Parameter     string
	TestName      string
	Frequency     string
	Specification string
}

type GpsTestingData struct {
	GpsFrequency
	Data   string
	Result string
}

type PrintBaseData struct {
	Model    string
	Version  string
	Serial   string
	Operator string
	Date     string
	QcOper   string
	QcDate   string
}

type AssemblySet struct {
	Item    string
	Station string
}

type RepairAction struct {
	Action  string
	Station string
}

type RepairSetting struct {
	Index     int
	Process   string
	ActionEng string
	ActionChn string
	Cycle     string
}

type QcInfo struct {
	QcOper string
	QcDate string
}

type KanBanDetails struct {
	Station   string
	Input     int
	FirstPass int
	Inprocess int
	FailNum   int
	TestPass  int
	TestFail  int
	PassUnit  int
	FailUnit  int
	FpyYield  string
	PyYield   string
}

type AnalyseDetails struct {
	Station   string // 站点
	Input     int    // 投入
	Output    int    // 产出
	Inprocess int    // 在制
	FailUnit  int    // 当前状态不良
	F3Unit    int    // 经过二次维修的不良产品数量
	F2Unit    int    // 经过一次维修的不良产品数量
	F1Unit    int    // 第一次检验不良的产品数量
	P3Unit    int    // 第三次维修后通过检验的产品数量
	P2Unit    int    // 第二次维修后通过检验的产品数量
	P1Unit    int    // 第一次维修后检验通过的产品数量
	PUnit     int    // 首次测试通过
	FpyYield  string // 一次通过率
	RpYield1  string // 第一次维修良率
	RpYield2  string // 第二次维修良率
	RpYield3  string // 第三次维修良率
	RpYield   string // 维修总良率
	PyYield   string // 良率
}

type NormalStruct struct {
	Value1 string
	Value2 string
}

type ParasStruct3 struct {
	Value1 string
	Value2 string
	Value3 string
}

type ParasStruct4 struct {
	Value1 string
	Value2 string
	Value3 string
	Value4 string
}

type AntennaRptStruct struct {
	Parameter     string
	Frequency     string
	Specification string
	Ports         string
	Data          string
	Result        string
}

type ReportSpec struct {
	Parameter     string
	Ports         string
	Specification string
}
